class UserAdd {
  int id;
  String username;
  String password;
  int sex;
  String email;
  String phone;
  String nickname;
  int status;

  UserAdd({
    this.id,
    this.username,
    this.password,
    this.sex,
    this.email,
    this.phone,
    this.nickname,
    this.status,
  });

  UserAdd.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    username = json['username'];
    password = json['password'];
    sex = json['sex'];
    email = json['email'];
    phone = json['phone'];
    nickname = json['nickname'];
    status = json['status'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['username'] = this.username;
    data['password'] = this.password;
    data['sex'] = this.sex;
    data['email'] = this.email;
    data['phone'] = this.phone;
    data['nickname'] = this.nickname;
    data['status'] = this.status;
    return data;
  }
}
